/*****************************************************************************************
   
   Copyright (c) Microsoft Corporation. All rights reserved.

   Use of this code sample is subject to the terms of the Microsoft
   Permissive License, a copy of which should always be distributed with
   this file.  You can also access a copy of this license agreement at:
   http://www.microsoft.com/resources/sharedsource/licensingbasics/permissivelicense.mspx

 ****************************************************************************************/

using System;

namespace GrooveWebServicesV12Helpers
{
	public class Email
	{
		private GrooveWebServicesV12Helpers.VCard m_VCard;

		private string m_EmailAddress;
		
		private GrooveVCardWebService.EmailType[] m_EmailTypes;

		public Email(GrooveWebServicesV12Helpers.VCard i_VCard, GrooveVCardWebService.Email i_Email)
		{
			m_EmailAddress = i_Email.EmailAddress;
			m_EmailTypes = i_Email.EmailTypes;

			m_VCard = i_VCard;
		}

		public string EmailAddress
		{
			get
			{
				return m_EmailAddress;
			}
		}

		public GrooveVCardWebService.EmailType[] EmailTypes
		{
			get
			{
				return m_EmailTypes;
			}
		}

		public GrooveWebServicesV12Helpers.VCard VCard
		{
			get
			{
				return m_VCard;
			}
		}
	}
}
